package com.jec.module.sysconfig.service.configor;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Component;

import com.jec.module.sysconfig.dao.TerminalBusinessRepository;
import com.jec.module.sysconfig.entity.TerminalBusiness;
import com.jec.module.sysconfig.service.convertor.Convertor;
import com.jec.module.sysconfig.service.convertor.TerminalBusinessConvertor;

@Component
public class TerminalBusinessConfigor extends BaseConfigor<TerminalBusiness> {
	
	private TerminalBusinessRepository terminalBusinessRepository;
	
	@Autowired 
	private TerminalBusinessConvertor terminalBusinessConvertor;

	public TerminalBusinessConfigor() {
		logKey = "终端业务";
	}
	
	@Override
	protected JpaRepository<TerminalBusiness, Integer> getRepository() {
		return terminalBusinessRepository;
	}
	
	@Override
	protected Convertor<TerminalBusiness> getConvertor() {
		return terminalBusinessConvertor;
	}

	@Override
	public boolean hasConfigOnNetunit(int netunit) {
		return false;
	}


}
